class MixinPro {
  constructor () {
    this.inputChildCallback = null // 子组件回调-输入框
  }
}

let newMixinPro = new MixinPro()
export const mixin = {
  data() {
    return {
      main: {
        name: '',
        age: 0,
        sex: 1,
      },
      other: {
        address: '',
        phone: '',
      },
      mixinPro: newMixinPro
    };
  },
  created() {
    this.main.sex = '女';
    console.log('created mixin');
  },
  method: {
    // 重置方法数据
    mixinProReset() {
      newMixinPro = new MixinPro()
    }
  }
};
